package org.soretro.portfolio.view.pages
{
	import com.google.analytics.AnalyticsTracker;
	import com.google.analytics.GATracker;
	
	import flash.display.Stage;
	
	import mx.managers.SystemManager;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class PagesMediator extends Mediator
	{
		public var tracker:AnalyticsTracker;
		
		override public function onRegister():void
		{
			googleTracker();
			super.onRegister();
			
//			tracker.trackPageview( "/hello/world" );
		}
		
		private function googleTracker():void
		{
			tracker = new GATracker( SystemManager.getSWFRoot(this).stage, "UA-18699334-1", "AS3", false );
		}
	}
}